@extends('web.frame_layout')
<?php $parent_menu = "会员管理"; $menu_selected = "我的推荐会员";?>
<link rel="stylesheet" href="{{asset('web/css/my-recommend.css')}}">
@section('content')

        <div class="m-right-nr">
            <div>
                <h2><span>{{$menu_selected}}</span></h2>
            </div>
            <div class="m-VList">
                <div class="m-VList-title">
                    会员列表
                    <div>
                        <form action="{{route('web.p-users.list')}}" method ="get" id="txjl_search">
                            <input type="text" name="search" placeholder="请输入用户名进行精准查询">
                            <button>搜索</button>
                        </form>
                    </div>
                </div>
                <div class="table-responsive">
                    <table class="table">
                        <tr>
                            <th>会员编号</th>
                            <th>会员用户名</th>
                            <th>会员等级</th>
                            <th>接点人</th>
                            <th>接点位置</th>
                            <th>推荐人</th>
                            <th>状态</th>
                            <th>注册时间</th>
                            <th>管理</th>
                        </tr>

                        @foreach($users as $user)
                            <tr class="active">
                                <td>{{$user->no}}</td>
                                <td>{{$user->username}}</td>
                                <td>
                                    {{\App\VModels\VVip::vipBySlug($user->vip_slug)->name}}
                                </td>
                                <td>{{$user->nuser->username or "无"}}</td>
                                <td>
                                    @if($user->addr == \App\Models\MUser::$ADDR_A)
                                        A区
                                    @elseif($user->addr == \App\Models\MUser::$ADDR_B)
                                        B区
                                    @endif
                                </td>
                                <td>{{$user->puser->username or "无"}}</td>
                                <td>{{uStatusStr($user->status)}}</td>
                                <td>{{date("Y-m-d",$user->reg_time)}}</td>
                                <td>
                                    @if($user->ok_status == 1)
                                    <a href="###" class="yjh">已激活</a>
                                    @else
                                    <a href="###" class="yjh">未激活</a>
                                    @endif
                                </td>
                            </tr>
                        @endforeach
                    </table>
                    @include('web.coms.fenye')
                </div>
            </div>
        </div>

@endsection

@section('footer')
@endsection